Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 3 - Page Formatting and Dialog Box Customization


Customizing QuickDraw GX Dialog Boxes

Your application can customize QuickDraw GX dialog boxes. To customize a QuickDraw GX dialog box, you need to take the following general steps:

  1. Install a message handler to override the message that causes a QuickDraw GX print dialog box to be displayed. Your override function loads your panel.
  2. Create an item list ('DITL') resource that defines the items, such as radio buttons, editable text fields, checkboxes, and pop-up menus, that you want to include in your panel. You may have to create additional resources, such as a control ('CNTL') resource for pop-up menus.
  3. Create an icon resource that is displayed in the extended dialog box.
  4. Create a panel (gxPrintPanelType) resource that provides a name for your panel and associates the panel with the item list resource and the icon resource.
  5. Install a handler to respond to events while the panel is active. This handler can be an extended item list (gxExtendedDITLType) resource or may be an override of the gxHandlePanelEvent message.

These steps need not be done in order; however, all must be completed. The following sections describe how your application adds a panel to a QuickDraw GX dialog box and how to automate the response to user actions using the extended item list (gxExtendedDITLType) resource.


Subtopics
Adding Panels to Dialog Boxes
Setting Up Dialog Box Resources
Parsing Page Ranges

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help